<template>
  <div class="yl-pop" >
      <div class="win">
        <div class="title">{{ylPop.title}}</div>
        <div class="holder">{{ylPop.holder}}</div>
           <input type="text" v-model="value">
           <div class="btns">
             <button @touchstart="sure">确定</button><button  @touchstart="ylPop.cancel">取消</button>
           </div>  
      </div>
  </div>
</template>
<script>
export default {
  props:['ylPop'],
  data(){
    return{
      value:''
    }
  },
  methods:{
      sure(){
        this.$emit('resVal',this.value)
      },
  },
  mounted(){
      
  }
}
</script>

<style lang="less" scoped>
.yl-pop{
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0,0.2);
  .win{//弹出框
      position: absolute;
      top: 50%;
      left: 50%;
      margin-left: -35%;
      margin-top: -1.5rem;
      width: 70%;
      background-color: #ffffff;
      border-radius: .05rem;
      border-top: 2px solid #FFB36E;
      // min-height:3rem;
      text-align: center;
      .title{
        font-size: .3rem;
        height: .5rem;
        line-height: .5rem;
        letter-spacing:2px;
        margin-top: .2rem
      }
      .holder{
        margin-top: .05rem;
        height: .4rem;
        line-height: .4rem;
        letter-spacing:1px;
        font-size: .25rem;
      }
      input{//输入框
        outline: none;
        border: 1px solid #eee;
        width: 80%;
        padding: .1rem;
        border-radius: 5px;
        margin: .1rem;
        font-size: .3rem;
      }
      .btns{
        border-top: 1px solid #eee;
        
        margin-top: .3rem;
        button{
          width: 50%;
          border: 0;
          height: .9rem;
        line-height: .9rem;
        }
        :nth-child(1){
          border-right:  1px solid #eee;
        }
      }
  }
}
</style>
